import request from '@/utils/request'

// 查询套红模版列表
export function listOfficeDocRedheadtpl(query) {
  return request({
    url: '/oa/officeDocRedheadtpl/list',
    method: 'get',
    params: query
  })
}

// 查询套红模版列表
export function listOfficeDocRedheadtplAll(query) {
    return request({
        url: '/oa/officeDocRedheadtpl/listAll',
        method: 'get',
        params: query
    })
}


// 查询套红模版详细
export function getOfficeDocRedheadtpl(id) {
  return request({
    url: '/oa/officeDocRedheadtpl/' + id,
    method: 'get'
  })
}

// 新增套红模版
export function addOfficeDocRedheadtpl(data) {
  return request({
    url: '/oa/officeDocRedheadtpl',
    method: 'post',
    data: data
  })
}

// 修改套红模版
export function updateOfficeDocRedheadtpl(data) {
  return request({
    url: '/oa/officeDocRedheadtpl',
    method: 'put',
    data: data
  })
}

// 删除套红模版
export function delOfficeDocRedheadtpl(id) {
  return request({
    url: '/oa/officeDocRedheadtpl/' + id,
    method: 'delete'
  })
}
